<template>
  <div class="commonTitle">
    <div class="title">
      <slot name="title" />
      <slot name="subtitle" />
    </div>
    <div class="time">
      <slot name="time" />
    </div>
    <div class="leftLine"></div>
    <div class="rightLine"></div>
  </div>
</template>

<script>
export default {
  name: "comTitle",
};
</script>

<style lang="scss" scoped>
.commonTitle {
  box-sizing: border-box;
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: space-between;
  border-bottom: 1px solid #00bfb1;
  // box-shadow: 0px 10px 39px 1px rgba(8, 46, 68, 0.06);
  position: relative;
  .title {
    display: flex;
    letter-spacing: 2px;
    flex: 2;
    align-items: center;
    color: #21333f;
    font-size: 18px;
    font-weight: bold;
  }
  .leftLine {
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 24px;
    height: 1px;
    background: #00bfb1;
  }
  .rightLine {
    position: absolute;
    right: 0;
    bottom: 0px;
    width: 40px;
    height: 1px;
    background: #00bfb1;
  }
}
</style>